<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/html/js/axios.min.js"></script>
    <script src="/html/js/ajax.js"></script>
    <script src="/html/js/util.js"></script>
    <script src="/html/js/util(1).js"></script>
    <script>
        async function sel(){
            let info=await ajaxGet("/order/findByDate",{date:getObject("date").value});
            let str="";
            for (let i=0;i<info.length;i++){
                let obj=info[i];
                str+=`日期:${obj.month}月<br>
                      收银:${obj.money}元<br><br>`;
            }
            getObject("showDiv").innerHTML=str;
        }
    </script>
</head>
<body>
<div style="margin-left: 100px;margin-top: 100px">
    时间:<input type="text" id="date">
    <input type="button" value="查看" onclick="sel()">
    <div id="showDiv">

    </div>
</div>
</body>
</html>